package com.hoopeu.ui.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.hoopeu.smarthome.R;
import com.hoopeu.ui.adapter.RFOCAdapter;

public class RFOCActivity extends Activity {

	private RFOCAdapter mAdapter;
	private ListView mListView;
	
	private ImageView btnBack;
	private TextView title;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_rfoc);
	//	requestWindowFeature(Window.FEATURE_NO_TITLE);
		btnBack = (ImageView)this.findViewById(R.id.btnBack);
		btnBack.setOnClickListener(new View.OnClickListener() {	
			@Override
			public void onClick(View v) {
				finish();		
			}
		});
		title = (TextView)this.findViewById(R.id.title);
		title.setText(getResources().getString(R.string.loop));
		String roomId = getIntent().getStringExtra("roomId");
		mAdapter = new RFOCAdapter(this, roomId);
		mListView = (ListView)this.findViewById(R.id.lv_rfoc);
		mListView.setAdapter(mAdapter);
	}
}
